package com.ycz.pattern.behaviour.mediatorpattern;

/**
 * @author yancz
 * @ClassName User
 * @description: TODO
 * @date 2023-12-01 17:34:04
 * @version: 1.0
 */
public class User {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name) {
        this.name = name;
    }

    public void sendMessage(String message) {
        ChatRoom.showMessage(this,message);
    }

}
